import {request} from 'umi';
import { DataView } from './data.d';
import {modulesUrl} from "@/assets/constant/modulesUrl";
import {getApiPrefix} from "@/assets/utils/utils";

/**
 * 执行SQL
 * @param params
 */
export async function executeSql(params?: DataView) {
  return request(getApiPrefix(modulesUrl.reportDataView) + "executeSql", {
    method: 'POST',
    data: {
      ...params,
      method: 'post',
    },
  });
}
